<script language="javascript" src="<?php echo base_url(); ?>application/views/cirugia/funcionAuxiliares.js"></script>
<form class='form-horizontal well'
        id='formCriterios'
        name='formRepoCiru'
        method="post"
        action='<?php echo base_url().'cirugia/guardarInforCiru'?>' onSubmit="return ValidatePlaniForm()">
<?php
$active = true;
//latisoft_openForm(base_url().'cirugia/guardarPlani', 'get', 'formCriterios');
    latisoft_openFieldset();    
    latisoft_legend('Resultado de Cirugía');
    if($indPlani){
 ?>
<!--Se creara el acrodeon para las zonas-->
<input type="hidden" value='<?php echo $idProcediminto?>' name="idproc" id="idproc">
<input type="hidden" value='0' id="hospital" name="hospital">
<div class="accordion" id="accordion2">
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
            Datos de Orden Cirugía
        </a>
        </div>
        <div id="collapseOne" class="accordion-body collapse">
        <div class="accordion-inner">
         <?php            
                $argumento=array('codPac'=> $codPac,'NomPac'=> $NomPac,'codOrd'=> $codOrd,'EstOrd'=> $EstOrd,'esp'=> $esp,'nomEspe'=> $nomEspe);
                $this->load->view('cirugia/datOrdCiruInfo',$argumento);
         ?> 
        </div>
        </div>
    </div>
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
            Descripción Cirugía
        </a>
        </div>
        <div id="collapseTwo" class="accordion-body collapse " >
        <div class="accordion-inner">
         <?php
                $this->load->view('cirugia/descripCiruInfo');
         ?> 
        </div>
        </div>
    </div>
    
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
            Lista de Exámenes
        </a>
        </div>
        <div id="collapseFour" class="accordion-body collapse">
        <div class="accordion-inner">
         <?php            
                //$argumento=array('codPac'=> $codPac,'NomPac'=> $NomPac,'codOrd'=> $codOrd,'EstOrd'=> $EstOrd,'esp'=> $esp,'nomEspe'=> $nomEspe);
                //$this->load->view('cirugia/listaExamenes',$argumento);
                 $this->load->view('cirugia/listaExamenesInfo');
         ?> 
        </div>
        </div>
    </div>
    
    
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFive">
            Medicamentos para Cirugía
        </a>
        </div>
        <div id="collapseFive" class="accordion-body collapse">
        <div class="accordion-inner">
         <?php            
                //$argumento=array('codPac'=> $codPac,'NomPac'=> $NomPac,'codOrd'=> $codOrd,'EstOrd'=> $EstOrd,'esp'=> $esp,'nomEspe'=> $nomEspe);
                //$this->load->view('cirugia/listaExamenes',$argumento);
                 $this->load->view('cirugia/infoMedic');
         ?> 
        </div>
        </div>
    </div>
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse20">
            Equipos
        </a>
        </div>
        <div id="collapse20" class="accordion-body collapse">
        <div class="accordion-inner">
         <?php            
                //$argumento=array('codPac'=> $codPac,'NomPac'=> $NomPac,'codOrd'=> $codOrd,'EstOrd'=> $EstOrd,'esp'=> $esp,'nomEspe'=> $nomEspe);
                //$this->load->view('cirugia/listaExamenes',$argumento);
                 $this->load->view('cirugia/infoEquipos');
         ?> 
        </div>
        </div>
    </div>
    
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
            Programación de Cirugía
        </a>
        </div>
        <div id="collapseThree" class="accordion-body collapse " >
        <div class="accordion-inner">
         <?php
            //$argumento=array('comboAmbiente'=> $comboAmbiente);    
            $this->load->view('cirugia/promCiruInfo');
         ?> 
        </div>
        </div>
    </div>
    <div class="accordion-group">
        <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseSeven">
            Informe de Cirugia
        </a>
        </div>
        <div id="collapseSeven" class="accordion-body collapse">
        <div class="accordion-inner">
         <?php            
                
                $this->load->view('cirugia/InfoCiru');
         ?> 
        </div>
        </div>
    </div>
 </div>

<!--Parte del registro-->

    <div class="control-group">        
        <div class="controls">
            <button class="btn btn-success" type="submit"  >Guardar</button>
            <button class="btn btn-danger" type="button" onclick="hospitalizar()" >Generar Orden</button>            
        </div>
    </div>

<?php } else echo 'No existe planificación';latisoft_closeFieldset() ?> 
</form>
<!--Fin del formulario-->

